import request from '@/utils/request'

// 查询志愿者审核列表
export function listVolunteer(query) {
  return request({
    url: '/api/volunteer/list',
    method: 'get',
    params: query
  })
}

// 查询志愿者审核详细
export function getVolunteer(pkId) {
  return request({
    url: '/api/volunteer/' + pkId,
    method: 'get'
  })
}

// 新增志愿者审核
export function addVolunteer(data) {
  return request({
    url: '/api/volunteer',
    method: 'post',
    data: data
  })
}

// 修改志愿者审核
export function updateVolunteer(data) {
  return request({
    url: '/api/volunteer',
    method: 'put',
    data: data
  })
}

// 删除志愿者审核
export function delVolunteer(pkId) {
  return request({
    url: '/api/volunteer/' + pkId,
    method: 'delete'
  })
}
